package com.dbpms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dbpms.pojo.*;

import java.util.List;

public interface IChamberService extends IService<ChamberInfo> {

    // 获取全部寝室楼信息
    public List<Chamberfloorinfo> queryAllChtFloorInfo();

    // 获取寝室类型信息
    public List<Chambertypeinfo> queryChtTypeInfo();

    // 删除寝室信息
    public boolean deleteChamberInfo(int Chamber_id) ;

    // 添加寝室信息
    public boolean addChamberInfo(ChamberInfo chInfo);

    // 修改寝室信息
    public boolean updateChamberInfo(ChamberInfo chInfo);

    // TODO 根据寝室号查找该寝室的学生
    public List<StudentInfo> queryChamberNum_Stu(int chamber_id);

    // 根据寝室楼与楼层查找寝室号信息
    public List<ChamberInfo> queryApplyChtInfo(int Chamber_floor_id, int Chamber_floor) ;

    // TODO 添加调寝申请
    public int addSleepAdjustmentApplyInfo(TransferChamberInfo info);

    // TODO 按照学号id查找调寝进度
    public List<TransferChamberInfo> queryChtApplyScheduleInfo(int stu_id) ;

    // TODO 查找正在审核中的调寝进度
    public List<TransferChamberInfo> queryChtApplyInScheduleInfo();

    // TODO 将选中的调寝记录审核通过
    public int successAdjustmentApplyInfo(int apply_other_chamber__id
            , int old_chamber_id, int new_chamber_id, int stu_id);

    // TODO 将选中的调寝记录审核打回
    public int dangerAdjustmentApplyInfo(int apply_other_chamber__id);
}
